﻿using System.Configuration;
using System.Collections.Generic;
using System;

namespace IGolovkine.ShoutCastRipper.Service.Configuration
{
    public class ContentTitleRegexFilterElementCollection : ConfigurationElementCollection<ContentTitleRegexFilterElement>
    {
        private const string ContentTitleFilterTag = "contentTitleRegexFilter";
        public ContentTitleRegexFilterElementCollection() : base(ContentTitleFilterTag)
        {
        }

        protected override object GetElementKey(ContentTitleRegexFilterElement element)
        {
            return element.Regex;
        }
    }
}
